package client;

import java.awt.Image;
import java.util.HashMap;
import java.util.Map;

import javax.swing.ImageIcon;

public class EnsembleImage {
	private Map<Integer, Image> images = new HashMap<>();

	public boolean contient(int key) {
		return images.containsKey(key);
	}

	public void addImage(int id, String nomImage) {
		ImageIcon ii = new ImageIcon("Image/" + nomImage);
		images.put(id, ii.getImage());
	}

	public Image getImage(int idImage) {
		return images.get(idImage);
	}
}
